import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
     int[] arr =new int[]{5,4,3,2,1,1,2,3,4,5};
        Scanner in = new Scanner(System.in);
        //从键盘输入序列号
        int from = in.nextInt();
        int to = in.nextInt();
        //遍历读取的数组
        for(int j = 0;j<copyOfRange(arr,from,to).length;j++){
            System.out.println(copyOfRange(arr,from,to)[j]);
        }
    }

    public static int[] copyOfRange(int[] arr,int from,int to){
        //将数组1中需要复制的数复制给数组2
        int[] arr2 = new int[to - from];
        int a = 0;
        for(int i = from;i<to;i++){
          arr2[a++] = arr[i];
        }
        return arr2;
    }
}